package com.example.container.sleep;

/**
 * Created by ZMJ on 2019/12/29.
 */
public class SleepTestMain {

    public static void main(String[] args) {
        SleepRunnable runnable = new SleepRunnable();
        Thread thread1 = new Thread(runnable, "线程1");
        Thread thread2 = new Thread(runnable, "线程2");
        thread1.start();//不一定就是线程1先执行,只是让它处于就绪状态.
        thread2.start();
    }

}
